package com.flaremars.picker.activities;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import com.flaremars.picker.R;

import uk.co.senab.photoview.PhotoViewAttacher;

public class ShowPictureActivity extends AppCompatActivity {

    ImageView imageView;
    PhotoViewAttacher attacher;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_picture);
        findViews();
        initViews();
    }

    private void findViews() {
        imageView = (ImageView) findViewById(R.id.iv_content);
    }

    private void initViews() {
        Bitmap bitmap = BitmapFactory.decodeResource(getResources(),R.mipmap.ic_launcher);
        imageView.setImageBitmap(bitmap);
        attacher = new PhotoViewAttacher(imageView);
    }
}
